package classes.pack;

import android.app.PendingIntent;
import android.telephony.SmsManager;
import classes.abstr.ExtInterface;

public class SmsInterface extends ExtInterface {

	public SmsInterface() {
		super(ExtInterfaceType.SMS);
		
	}

	@Override
	public void startParking() {
		
		int parkingZone;
		
		parkingZone = ParkingZones.getCurrentParkingZone();
		
		SmsManager smsProvider = SmsManager.getDefault();
		
		String destinationAddress = "4111";
		String scAddress = null;
		String text = "pm " + parkingZone + "";
		PendingIntent sentIntent = null;
		PendingIntent deliveryIntent = null;
		
		smsProvider.sendTextMessage(destinationAddress, scAddress, text, sentIntent, deliveryIntent);
	}

	@Override
	public void stopParking() {
		// TODO Auto-generated method stub
		
	}

}
